package fr.sharpe.app.earthvisualizationproject.controller;

import com.mycila.event.api.Dispatcher;
import com.mycila.event.api.annotation.AnnotationProcessor;
import com.mycila.event.spi.AnnotationProcessors;
import com.mycila.event.spi.Dispatchers;


public class MainController {

	public MainController()
	{
		Dispatcher dispatcher = Dispatchers.asynchronousUnsafe();
		AnnotationProcessor processor = AnnotationProcessors.create(dispatcher);
		
		EarthController earthController = new EarthController(dispatcher);
		processor.process(earthController);
		PersistenceController persistenceController = new PersistenceController(dispatcher);
		processor.process(persistenceController);
		InputHubController inputHubController = new InputHubController(dispatcher);
		
		
	}
}
